/**
 * 
 */
package br.edu.ufcg.embedded.util.algo;

import java.util.Comparator;

/**
 * @author daniel
 *
 */
public class AStarNodeComparator implements Comparator<AStarNode>
{
	public int compare(AStarNode first, AStarNode second) {
		if(first.getG() < second.getG()){
			return -1;
		}else if(first.getG() > second.getG()){
			return 1;
		}else{
			return 0;
		}
	}
}
